home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4500 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: informatik.tu-muenchen.de!fischerj
  2. From: fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Qblit intereference again
  5. Date: 29 Feb 1996 14:42:19 GMT
  6. Organization: Technische Universitaet Muenchen, Germany
  7. Distribution: world
  8. Message-ID: <4h4e0b$ljq@sunsystem5.informatik.tu-muenchen.de>
  9. References: <4gb6om$104@sunsystem5.informatik.tu-muenchen.de> <PETERM.96Feb29111630@tui.maths.irl.cri.nz>
  10. NNTP-Posting-Host: hphalle2i.informatik.tu-muenchen.de
  11. Originator: fischerj@hphalle2i.informatik.tu-muenchen.de
  12.  
  13.  
  14. In article <PETERM.96Feb29111630@tui.maths.irl.cri.nz>, peterm@maths.grace.cri.nz (Peter McGavin) writes:
  15. |> Distribution: world
  16. |> References: <4gb6om$104@sunsystem5.informatik.tu-muenchen.de>
  17. |> Organization: Industrial Research Ltd
  18. |> In-reply-to: fischerj@Informatik.TU-Muenchen.DE's message of 20 Feb 1996
  19. |>     01:05:26 GMT
  20. |> Lines: 21
  21. |> 
  22. |> fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) writes:
  23. |> >My Qblit function still locks up if OS does small blits between it.
  24. |> >help please.
  25. |> 
  26. |> A few other things to check:
  27. |> 
  28. |> Make sure the same bltnode is not being used for 2 blits at the same
  29. |> time.  Don't clear the first field in the bltnode (which is used
  30. |> internally by the system) while the bltnode is in use by the system.
  31.  
  32. well, but as I wait for _bltbsy before, it won't happen that I use the
  33. bltnode struc bevore I was cleanup:ed...
  34.  
  35. |> 
  36. |> Be careful with CPU busy-loops and priorities.  If the program CPU
  37. |> busy-loops for QBlit() to finish and a lower-priority task owns the
  38. |> blitter at the instant QBlit() is called, then the lower-priority task
  39. |> can't get the CPU to disown the blitter ---> result lockup.  IMO, it's
  40.  
  41. aaaaah! goooood idea :) I will use waittof to see if this is the reason.
  42.  
  43. |> better to Wait() for a Signal() from the QBlit() cleanup function than
  44. |> to busy-loop.
  45.  
  46. mhm, I'm lazy in this case, and with waittof it shouldn't be too much
  47. overhead.
  48. Anyone got example code for signaling ?
  49.  
  50. |> 
  51. |> The first blit in every QBlit() chain must initialise _all_ the
  52. |> blitter registers for the blitter channels used.
  53. |> -- 
  54. |> Peter McGavin.   (p.mcgavin@irl.cri.nz)
  55. |> 
  56.